package o;

import android.view.View;
import com.huawei.support.widget.HwEditText;
import java.lang.ref.WeakReference;

public class fmf extends SkinAttr {

    static final class b extends fkz<SkinAttr, Integer> {
        private WeakReference<HwEditText> ˏ;

        public /* synthetic */ void ॱ(Object obj) {
            ˏ((Integer) obj);
        }

        private b(HwEditText hwEditText) {
            this.ˏ = new WeakReference(hwEditText);
        }

        public void ˏ(Integer num) {
            HwEditText hwEditText = (HwEditText) this.ˏ.get();
            if (hwEditText != null) {
                hwEditText.setTextCursorColor(num.intValue());
            }
        }
    }

    public fmf() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwEditText) {
            HwEditText hwEditText = (HwEditText) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new b(hwEditText)).ॱ(z);
            }
        }
    }
}
